import sys
from modules.gui import MovieListGUI

def main():
    ##显示加载窗口
    try:
        import pyi_splash # type: ignore
        pyi_splash.update_text('UI Loaded ...')
        pyi_splash.close()
    except:
        pass
	##
    
    """程序主入口函数"""
    # 启动GUI 
    gui = MovieListGUI()
    gui.root.mainloop()
    return    


if __name__ == '__main__':
    try:
        main()
    except Exception as error:
        print(f'程序执行失败: {error}')
        sys.exit(1)
 